/**
 * 版权所有(C)，中国银联股份有限公司，2002-2013，所有权利保留。
 * 
 * 项目名：	simple-core
 * 文件名：	SystemInfoDaoImpl.java
 * 模块说明：	
 * 修改历史：
 * 2013-10-29 - Administrator - 创建。
 */
package com.aeky.simple.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.aeky.simple.dao.GenericIbatisDao;
import com.aeky.simple.dao.SystemInfoDao;
import com.aeky.simple.entity.SystemInfo;
import com.aeky.simple.vo.page.Pager;

/**
 * @author wanghui
 * 
 */
@Repository("systemInfoDao")
public class SystemInfoDaoImpl extends GenericIbatisDao<SystemInfo, String> implements
                SystemInfoDao {

    public List<SystemInfo> queryAll() {
        return super.queryAll();
    }

    public void addSystemInfo(SystemInfo systemInfo) {
        super.add(systemInfo);
    }

    public void deleteSystemInfo(List<String> sysCodeList) {
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("sysCodeList", sysCodeList);
        super.delete(map);
    }

    public void updateSystemInfo(SystemInfo systemInfo) {
        super.updateByPKAndVersion(systemInfo);
    }

    public void changeSystemInfoStatus(Map<String, Object> dataMap) {
        getSqlMapClientTemplate().delete("SystemInfo.changeSystemInfoStatus", dataMap);
    }

    public SystemInfo querySystemInfoBySystemCodeAndVersion(Map<String, Object> dataMap) {
        return super.queryByPKAndVersion(dataMap);
    }

    public SystemInfo querySystemInfoByPK(String sysCode) {
        return super.queryByPK(sysCode);
    }

    public Pager<SystemInfo> querySystemInfoList(Pager<SystemInfo> pager,
                    Map<String, Object> dataMap) {
        return super.queryByPage(pager, dataMap);
    }

}
